package visitor.pattern.simple.browser.internet;

import lombok.extern.slf4j.Slf4j;
import visitor.pattern.simple.browser.visitors.base.BaseVisitor;

/**
 * @Author: Coderlyz
 * @Date: 2023/4/3 20:00
 */
@Slf4j
public class Baidu extends AbstractHtmls{

    public Baidu(){
        content="欢迎访问Baidu！";
        type=Types.Baidu;
    }

    @Override
    public void accept(BaseVisitor visitors) {
        visitors.visitingBaidu(this);
    }

    @Override
    public void show() {
        log.debug(content);
    }

    public static void main(String[] args) {
        log.debug(new Baidu().getType().toString());
    }
}
